package com.endurance.fallback;

import com.endurance.feign.ProductClients;
import com.endurance.po.Product;
import org.springframework.stereotype.Component;

import java.util.HashMap;

/**
 * @Author: sunlin
 * @Date: 2024-04-18 9:28
 * @Version: 1.0
 * @Description: 服务降级
 */
@Component
public class ProductFallback implements ProductClients {

    @Override
    public HashMap findAll() {
        return null;
    }

    @Override
    public HashMap method1(String name) {
        HashMap hashMap = new HashMap();
        hashMap.put("name", "服务降级");
        return hashMap;
    }

    @Override
    public HashMap method2(Product product) {
        return null;
    }

    @Override
    public HashMap method3(String name) {
        return null;
    }

    @Override
    public HashMap method4(Product product) {
        return null;
    }
}
